package com.atmilan.quartz.model.result;

import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * x
 *
 * @author muyu.myw
 * @date 2020/10/9 23:21
 */

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class CrmebOrderResult {
    private long code;
    private String message;
    @JsonProperty(value = "data")
    private OrderStore orderInfo;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class OrderStore {
        @JsonProperty(value="orderId")
        String outerOrderNo;
        Integer orderSource=1;
        BigDecimal payPrice;
        BigDecimal payPostage;
        String payType;
        Integer shippingType;
        String address;
        String consignee;
        String phone;
        @JsonProperty(value="createTime")
        String orderTime;
        String payTime;
        String region;
        List<OrderProduct> productList;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class OrderProduct {
        String productId;
        String suk;
        Integer qty;
        BigDecimal price;
        Integer supplySource;
    }

}
